
#ifndef _LCD_H
#define _LCD_H

#include "stm8l15x_lcd.h"



#if 0
typedef enum
{
	SEG0 = 0,
	SEG1,
	SEG2,
	SEG3,
	SEG4,
	SEG5,
	SEG6,
	SEG7,
	SEG8,
	SEG9,
	SEG10,
	SEG11,
	SEG12,
	SEG13,
	SEG14,
	SEG15,
	SEG16,
	SEG17
}EnumSegement;

#define LCD_COM0 LCD_RAMRegister_0
#define LCD_COM1 LCD_RAMRegister_3
#define LCD_COM2 LCD_RAMRegister_7
#define LCD_COM3 LCD_RAMRegister_10

#define Z1_Z2_Z3_Z4 SEG15
#define Z5_Z6_Z7_Z8 SEG14
#define Z9_Z10          SEG13

#endif


typedef enum
{
	TYPE_C = 0,
	TYPE_P,
	TYPE_H,
	TYPE_L,
	TYPE_A,
	TYPE_b,
	TYPE_R,
	TYPE_MAX
}EnumParameterType;

typedef enum
{
	TUBE_1 = 0,
	TUBE_2,
	TUBE_3,
	TUBE_4,
	TUBE_5,
	TUBE_6,
	TUBE_MAX
}EnumTubeNum;


void LCDConfiguration(void);
void LCDShowPercent(unsigned char per);
void LCDUpdateScreen(void);

void TestPercent(void);

void LCDShowPercentMask(void);
void LCDUnShowPercentMask(void);

void LCDShowNumber(unsigned short int num);

void LCDShowParameterType(EnumParameterType typ);
void LCDUpdateWholeScreen(void);
void LCDClearAllScreen(void);

void LCDShowAnyCharOnTube(EnumTubeNum TUBE_BIT,unsigned char dat);


#endif
